package priv.yiyuan.example.design.message;

/**
 * 消息通知类型
 * <p>
 * 桥接模式(抽象部分)
 *
 * @author YiYuan
 * @data 2025/8/18
 * @apoNote
 */
public abstract class Notification {

    protected MessageSender sender;

    public Notification(MessageSender sender) {
        this.sender = sender;
    }

    public void setSender(MessageSender sender) {
        this.sender = sender;
    }

    public abstract void notifyUser(String message);
}
